package vn.edu.saigontech.ncms.model.enumeration;

public enum Result {
	
	SUCCESS("success"), FAILURE("failure"), OTHER("other");
	
	private String key;
	
	private Result(String key) {
		this.key = key;
	}
	
	public static Result create(String key) {
		try {
			return valueOf(key);
		}
		catch(Exception ex) {}
		return null;
	}

	public String getName() {
		return this.key;
	}
}